package com.wicket.okrcomponent.web.contorller;

import cn.hutool.core.bean.BeanUtil;
import com.github.pagehelper.Page;
import com.github.pagehelper.page.PageMethod;
import com.wicket.okrcomponent.biz.service.OperationsDeploymentService;
import com.wicket.okrcomponent.biz.service.dto.req.*;
import com.wicket.okrcomponent.biz.service.dto.res.*;
import com.wicket.okrcomponent.common.ro.OkrResult;
import com.wicket.okrcomponent.common.util.CommonFunctionHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：
 * @date ：
 *
 * 
 * @version 1.0
 */
@RestController
@RequestMapping("/comp/operationsDeployment/")
public class OperationsDeploymentController {

  @Autowired
  OperationsDeploymentService operationsDeploymentService;
/**
   * D2执行动态寻表删除数据(公共)
   */
    @PostMapping("implementDynamicLookupDeleteDataCom")
    public OkrResult<ImplementDynamicLookupDeleteDataComRespDto> implementDynamicLookupDeleteDataCom(@RequestBody @Validated ImplementDynamicLookupDeleteDataComReqDto reqDTO){
    return OkrResult.success(operationsDeploymentService.implementDynamicLookupDeleteDataCom(reqDTO));
    }
/**
   * D2执行动态寻表数据(公共)
   */
    @PostMapping("implementDynamicLookupDataCom")
    public OkrResult<ImplementDynamicLookupDataComRespDto> implementDynamicLookupDataCom(@RequestBody @Validated ImplementDynamicLookupDataComReqDto reqDTO){
    return OkrResult.success(operationsDeploymentService.implementDynamicLookupDataCom(reqDTO));
    }
/**
   * D2执行私有化分离数据(公共)
   */
    @PostMapping("implementPrivatizationAndSeparationDataCom")
    public OkrResult<ImplementPrivatizationAndSeparationDataComRespDto> implementPrivatizationAndSeparationDataCom(@RequestBody @Validated ImplementPrivatizationAndSeparationDataComReqDto reqDTO){
    return OkrResult.success(operationsDeploymentService.implementPrivatizationAndSeparationDataCom(reqDTO));
    }
}
